import request from "@/utils/request";

// 查询支付设置列表
export function listPayType(query) {
  return request({
    url: "/mall/payType/list",
    method: "get",
    params: query,
  });
}
//添加
export function addPayType(data) {
  return request({
    url: "/mall/payType/add",
    method: "post",
    data,
  });
}
//编辑
export function editPayType(data) {
  return request({
    url: "/mall/payType/edit",
    method: "put",
    data,
  });
}
//查询支付设置详情
export function queryPayType(id) {
  return request({
    url: "/mall/payType/" + id,
    method: "get",
  });
}
//是否使用-开关
export function updateIsShow(data) {
  return request({
    url: "/mall/payType/updateIsShow",
    method: "put",
    data,
  });
}
